home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Human Interface Toolbox / CustomWindow / CustomWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-06  |  2.8 KB  |  61 lines

  1. /*
  2.     File:        CustomWindow.h    
  3.  
  4.     Contains:    The header file for the custom window sample
  5.  
  6.     Written by:     Karl Groethe
  7.  
  8.     Copyright:    Copyright © 2000 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.             You may incorporate this Apple sample source code into your program(s) without
  11.             restriction. This Apple sample source code has been provided "AS IS" and the
  12.             responsibility for its operation is yours. You are not permitted to redistribute
  13.             this Apple sample source code as "Apple sample source code" after having made
  14.             changes. If you're going to re-distribute the source, we require that you make
  15.             it clear in the source that the code was descended from Apple sample source
  16.             code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                         6/28/00     created
  20.                 
  21.  
  22. */
  23. #ifndef CUSTOM_WINDOW_H
  24. #define CUSTOM_WINDOW_H
  25.  
  26. #include <Carbon/Carbon.h>
  27.  
  28. SInt32 myWindowDef(short varCode,WindowRef window, SInt16 message, SInt32 param);
  29. SInt32 myWindowDraw(WindowRef window,SInt32 param);
  30. RgnHandle getWindowCloseBoxRegion(WindowRef window,RgnHandle closeBoxRegion);
  31. RgnHandle getWindowZoomBoxRegion(WindowRef window,RgnHandle zoomBoxRegion);
  32. RgnHandle getWindowCollapseBoxRegion(WindowRef window,RgnHandle collapseBoxRegion);
  33. RgnHandle getWindowTitleBarRegion(WindowRef window,RgnHandle titleBarRegion);
  34. RgnHandle getWindowTitleTextRegion(WindowRef window,RgnHandle titleTextRegion);
  35. RgnHandle getWindowGlobalPortRegion(WindowRef window, RgnHandle globalPortRegion);
  36. RgnHandle getWindowContentRegion(WindowRef window,RgnHandle contentRegion);
  37. RgnHandle getWindowStructureRegion(WindowRef window, RgnHandle structureRegion);
  38. RgnHandle getWindowDragRegion(WindowRef window, RgnHandle dragRegion);
  39. RgnHandle getWindowUpdateRegion(WindowRef window,RgnHandle updateRegion);
  40. void drawWindowFrame(WindowRef window);
  41. Boolean drawWindowCloseBox(WindowRef window, Boolean hilite);
  42. Boolean drawWindowZoomBox(WindowRef window, Boolean hilite);
  43. Boolean drawWindowCollapseBox(WindowRef window, Boolean hilite);
  44. SInt32 myWindowHitTest(WindowRef window,SInt32 param);
  45. SInt32 myWindowInitialize(WindowRef window,SInt32 param);
  46. SInt32 myWindowCleanUp(WindowRef window,SInt32 param);
  47. SInt32 myWindowDrawGrowBox(WindowRef window,SInt32 param);
  48. SInt32 myWindowHitTest(WindowRef window,SInt32 param);
  49. SInt32 myWindowGetFeatures(WindowRef window,SInt32 param);
  50. SInt32 myWindowGetRegion(WindowRef window,SInt32 param);
  51. SInt32 myWindowDragHilite(WindowRef window,SInt32 param);
  52. SInt32 myWindowModified(WindowRef window,SInt32 param);
  53. SInt32 myWindowDrawInCurrentPort(WindowRef window,SInt32 param);
  54. SInt32 myWindowStateChanged(WindowRef window,SInt32 param);
  55. SInt32 myWindowGetGrowImageRegion(WindowRef window,SInt32 param);
  56. SInt32 myWindowDrawGrowOutline(WindowRef window, SInt32 param);
  57.  
  58. void getCurrentPortBounds(Rect* inRect);
  59.  
  60. #endif
  61.